from django.conf.urls import url

from apps.areas import views

urlpatterns = [
    # 请求省市区下拉框
    url(r'^areas/$', views.AreaView.as_view(), name='areas'),
    # 添加收货地址
    url(r'^address/create/$', views.CreateAddressView.as_view(), name='cteate_address'),
    # 修改收货地址
    url(r'^address/(?P<address_id>\d+)/$', views.UpdateAddressView.as_view(), name='update_address'),
    url(r'^address/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view(), name='default_address'),
    url(r'^address/(?P<address_id>\d+)/title/$', views.UpdateAddressTitleView.as_view(), name='title_address'),
]
